package cc.plumgo.j2me.utils;

import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.TiledLayer;

import cc.plumgo.ss.core.Constants;
import cc.plumgo.ss.yo.entity.Hero;

public class CustomScene {
	public TiledLayer tLayer;
	private int scene;
	public CustomScene(int sceneIndex) {
		scene = sceneIndex;
	}
	
	public void produceEnemy(Hero hero) {
	}
	
	public void loadScene() {
		try {
			Image img = Image.createImage(Constants.SCENE_IMGS[scene]);
			tLayer = new TiledLayer(1, 1, img, Constants.SCENE_SIZ[0], Constants.SCENE_SIZ[1]);
			tLayer.setCell(0, 0, 1);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
